/// @author: pengboboer
/// @createDate: 2022/1/5
typedef OnSuccess = void Function(dynamic object);
typedef OnError = void Function(String? msg);
typedef OnErrorCode = void Function(int? code, String? msg);
typedef OnErrorMap = void Function(dynamic object);

class BaseCallback {
  OnSuccess onSuccess;
  OnError onError;
  OnErrorCode? onErrorCode;
  OnErrorMap? onErrorMap;
  BaseCallback(
      {required this.onSuccess, required this.onError, this.onErrorCode, this.onErrorMap});
}
